var express = require('express');
var router = express.Router();
const { getAllCollections,delCollection} = require('../controllers/collectionController');
const { getAllError,delError,collectError} = require('../controllers/errorController');
const { getAllTest,ranking} = require('../controllers/rankingListController');
const {isOkList} = require('../controllers/tikuListController');
const { getAllTypes} = require('../controllers/typeController');


// 全部收藏
router.post('/getAllCollections',getAllCollections);
//点击取消收藏
router.post('/delCollection',delCollection);
// 全部错题
router.post('/getAllError',getAllError);
//错题标记学会
router.post('/delError',delError);
//收藏错题
router.post('/collectError',collectError);
// 全部试卷（排行榜）
router.get('/getAllTest',getAllTest);
// 全部考试类型
router.get('/getAllTypes',getAllTypes);
//当前试卷下用户的分数
router.post('/ranking',ranking);
// 试卷分类：是否完成
router.post('/isOkList',isOkList);



module.exports = router;